﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class 讀SQL数据库的表名 : System.Web.UI.Page
{
    public TongUse1 TextData = new TongUse1();
    protected void Page_Load(object sender, EventArgs e)
    {

       GridView1.DataSource =  TextData.SqlDataSet("select name    from   sysobjects where xtype='u'   ").Tables[0].DefaultView;
       GridView1.DataBind();
    }
}
